<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			body {
				margin: 0;
				padding: 0;
			}

			.box {
				height: 489px;
				/* 隐藏滚动条 */
				overflow: hidden;
			}
			.box img {
				position: relative;
				/* 图片的一半 */
				/* left: -960px; */
				/* translate百分比相对于自身的一半 */
				transform: translate(-50%);
				/* 包含块父级盒子的一半 */
				margin-left: 50%;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img src="./img/mhxy.jpg" alt="" />
		</div>
	</body>
</html>
